﻿using System.Collections.Generic;
using TeaLight.Core.BL.Entities;

namespace TeaLight.Core.DAL
{
    public partial class SpeakerRepository
        : DataManagerBase<Speaker>
    {
        public static IEnumerable<SessionSpeaker> GetSessionSpeakers(Speaker speaker)
        {
            return SessionSpeakerRepository.GetTable().Where(i => i.SpeakerId == speaker.Id);
        }
    }
}
